home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
E-G
/
GetFonts!.cpt
/
GetFonts!
/
card_2901.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
5KB
|
225 lines
-- card: 2901 from stack: in
-- bmap block id: 0
-- flags: 0000
-- background id: 2769
-- name:
-- part 1 (button)
-- low flags: 00
-- high flags: 2001
-- rect: left=18 top=31 right=74 bottom=65
-- title width / last selected line: 0
-- icon id / first selected line: 1011 / 1011
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
if the optionkey is down then
pass mouseup
end if
go home
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=347 top=282 right=304 bottom=447
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Show Syntax
----- HyperTalk script -----
on mouseUp
Show card field "info"
repeat until the mouse is down
end repeat
hide card field "info"
end mouseUp
-- part 8 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=143 top=35 right=59 bottom=373
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 14
-- style flags: 1280
-- line height: 18
-- part name:
-- part 10 (field)
-- low flags: 80
-- high flags: 0004
-- rect: left=118 top=79 right=265 bottom=416
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: About
-- part 11 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=26 top=92 right=317 bottom=229
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 12 (field)
-- low flags: 01
-- high flags: 0007
-- rect: left=242 top=93 right=278 bottom=483
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: Show
-- part 13 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=248 top=65 right=86 bottom=326
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Show Font
----- HyperTalk script -----
on mousedown
global fonts -- from openstack
set hilite of the target to true
get rect of the target
delete item 2 to 3 of it
add 1 to item 1 of it
add 1 to item 2 of it
get PopUpMenu(fonts, 0, item 2 of it, item 1 of it)
set hilite of the target to false
if it is not zero then
put item it of fonts into temp
set textfont of card field "Show" to temp
end if
end mousedown
-- part 14 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=366 top=65 right=86 bottom=444
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Show Size
----- HyperTalk script -----
on mousedown
Get textfont of card field "Show"
put FontSize(it) into size
set hilite of the target to true
get rect of the target
delete item 2 to 3 of it
add 1 to item 1 of it
add 1 to item 2 of it
get PopUpMenu(size, 0, item 2 of it, item 1 of it)
set hilite of the target to false
if it is not zero then
put item it of size into temp
set textsize of card field "show" to temp
end if
end mousedown
-- part 19 (field)
-- low flags: 81
-- high flags: 0002
-- rect: left=26 top=92 right=267 bottom=229
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: info
-- part contents for card part 8
----- text -----
Trap Return XCMD
-- part contents for card part 11
----- text -----
Two new XFCN to retrieve Fonts and Sizes in all open resource files.
If you find these XFCN usefull, feel free to use and distribute.
Guy de Picciotto.
CIS: 73300,3637
GENIE: G.PICCIOTO
-- part contents for card part 12
----- text -----
Avant Garde,B Bookman Demi,B Glypha Bold,Benguiat,BillsDingbats,Bodoni,Bookman,Brush Script,Century Old Style,Cheltenham,Chicago,ChiTown,Clairvaux,CLB Helvetica Condensed Black,Cooper Black,Courier,Flowscript,FranklinGothic,Freestyle Script,Friz Quadrata,Galliard,Garamond,GBShaw,Geneva,Gregorian,Helvetica,I Glypha Oblique,I Korinna KursivRegular,Korea,Korinna,L Helvetica Light,Melior,Monaco,New Century Schlbk,New York,P Bodoni Poster,Palatino,Symbol,Times,Venice
-- part contents for card part 19
----- text -----
Get FontName()
Retrieves font names as separate items of a container.
Get FontSize("Geneva")
Retrieves all Geneva sizes as separate items of a container.